using KPIS.GERP.Models.Class;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmPurchaseOrderInstallmentItem")]
    public class PurchaseOrderInstallmentItem
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "IcmPoInstallItemId", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public int PoInstallItemId { get; set; }

        [ForeignKey("PurchaseOrderInstallment")]
		[DataMember, Display(Name = "IcmPoInstallId", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public int PoInstallId { get; set; }

        [ForeignKey("BidderQuotation")]
		[DataMember, Display(Name = "IcmBidderQuoId", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public int BidderQuoId { get; set; }

		[DataMember, Display(Name = "ItemDescr", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public string Descr { get; set; }

		[DataMember, Display(Name = "ItemQty", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public Nullable<int> Qty { get; set; }

		[DataMember, Display(Name = "ItemPriceExcludeVat", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public Nullable<double> ItemPriceExcludeVat { get; set; }

		[DataMember, Display(Name = "ItemPriceIncludeVat", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public Nullable<double> ItemPriceIncludeVat { get; set; }

		[DataMember, Display(Name = "ExcludeVatAmount", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public Nullable<double> ExcludeVatAmount { get; set; }

        [DataMember, Display(Name = "VatAmount", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public Nullable<double> VatAmount { get; set; }

        [DataMember]
        public Nullable<double> DiscountPercent { get; set; }

        [DataMember]
        public Nullable<double> ExtraDiscount { get; set; }

		[DataMember, Display(Name = "NetAmount", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public Nullable<double> NetAmount { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PurchaseOrderInstallmentItemResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }
        
    

		[DataMember]
        public virtual BidderQuotation BidderQuotation { get; set; }

		[DataMember]
        public virtual PurchaseOrderInstallment PurchaseOrderInstallment { get; set; }
    }
}